﻿@{
    ViewBag.Title = "领料单列表";
    Layout = "~/Views/Shared/_LayoutList.cshtml"; 
}
@(Html.nbGridFor<MaterialProcess>(s =>
 {
     s.Action("List");
     s.Columns(c =>
     {
         c.Bind(e => e.Id).IsKey();
         c.BindDateTime(e => e.ProcessDate).Width(70).AsSearch();
         c.BindEnum(e => e.Category, "MaterialCategory").Width(50).AsSearch();
         c.BindEnum(e => e.OrderState, "ProcessState").Width(40);
         c.Bind(e => e.ItemDesc).Width("auto").Align(GridAlign.Left).AsSearch().AsQuery();
         c.Bind(e => e.UpdateUser).Width(60);
         c.BindDateTime(e => e.UpdateDate).Width(70);
         c.BindTemplate(60)
            .Template(@<a href="@Url.OpenDialog(Url.Action("Edit", new { Id = "${Id}" }), "领加工原材料")" class="imgbtn2" ><span
                class="accept">领料</span></a>);
     });
 }))
